package com.sheep.boot.model;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @author wangze
 * @date 2021-04-04 20:59.
 **/
@Component("myTomCar")
@ConfigurationProperties(prefix = "my")
public class MyCar {
	private String brand;
	private BigDecimal price;

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
}
